/* Enhanced Case Studies CSS - Production Ready */

/* CSS Variables for consistent theming */
:root {
    --brand-orange: #FF8C42;
    --brand-blue: #3B82F6;
    --brand-dark: #0a0a0a;
    --brand-dark-secondary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.6);
    --border-color: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.06);
    --card-hover-bg: rgba(255, 255, 255, 0.08);
    --gradient-primary: linear-gradient(135deg, #FF8C42, #FF6A00);
    --gradient-secondary: linear-gradient(135deg, #3B82F6, #1E40AF);
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--brand-dark);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    font-size: 14px;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    color: var(--text-muted);
}

.breadcrumb-list a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.breadcrumb-list a:hover {
    color: var(--brand-orange);
}

.breadcrumb-list li:last-child {
    color: var(--brand-orange);
    font-weight: 500;
}


/* Modern Floating Navigation Bar - Sleek & Professional */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1400px;
    background: rgba(47, 58, 78, 0.85); /* Slightly transparent with theme color */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.navbar.scrolled {
    background: rgba(47, 58, 78, 0.95);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.15);
}

.nav-container {
    padding: 0 24px;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 10;
}

.nav-logo img {
    height: 72px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo:hover img {
    transform: scale(1.05);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    position: relative;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    z-index: 5;
}

.nav-link:hover,
.nav-link.active {
    color: #FF8C42;
    background: rgba(255, 140, 66, 0.1);
}

.chevron-down {
    width: 4px;
    height: 4px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.has-mega:hover .chevron-down {
    transform: rotate(225deg);
}

/* Clean Mega Menu - Text Based Like RegisterKaro */
.mega-menu {
    position: absolute;
    top: calc(100% + 25px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    width: 85vw;
    max-width: 900px;
    min-width: 700px;
    overflow: hidden;
    z-index: 999;
    pointer-events: none;
}

/* Smart positioning to prevent viewport overflow */
@media (min-width: 1024px) {
    .mega-menu {
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(10px);
    }

    .nav-item:nth-last-child(-n+3) .mega-menu {
        left: auto;
        right: 0;
        transform: translateX(0) translateY(10px);
    }

    .nav-item:nth-child(-n+3) .mega-menu {
        left: 0;
        right: auto;
        transform: translateX(0) translateY(10px);
    }

    .nav-item:nth-last-child(-n+3):hover .mega-menu {
        transform: translateX(0) translateY(0);
    }

    .nav-item:nth-child(-n+3):hover .mega-menu {
        transform: translateX(0) translateY(0);
    }

    .has-mega:not(:nth-child(-n+3)):not(:nth-last-child(-n+3)):hover .mega-menu {
        transform: translateX(-50%) translateY(0);
    }
}

/* Show mega menu on hover */
.has-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.mega-menu:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.mega-container {
    display: flex;
    min-height: 420px;
}

/* Left Sidebar */
.mega-sidebar {
    background: #2F3A4E;
    width: 280px;
    padding: 32px 0;
    flex-shrink: 0;
}

.mega-tab {
    padding: 16px 32px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
    margin: 2px 0;
}

.mega-tab:hover,
.mega-tab.active {
    color: #FF8C42;
    background: rgba(255, 140, 66, 0.1);
    border-left-color: #FF8C42;
}

.mega-tab.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #FF8C42;
}

/* Right Content Area */
.mega-content {
    flex: 1;
    padding: 40px;
    background: white;
}

.mega-panel {
    display: none;
}

.mega-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-bottom: 32px;
}

/* Clean text links - no buttons/cards */
.mega-link {
    display: block;
    padding: 12px 24px;
    color: #4B5563;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mega-link:hover {
    color: #FF8C42;
    background: rgba(255, 140, 66, 0.05);
    transform: translateX(4px);
}

.mega-link:last-child {
    border-bottom: none;
}

.know-more {
    display: inline-flex;
    align-items: center;
    color: #FF8C42;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 0;
    transition: all 0.3s ease;
}

.know-more:hover {
    transform: translateX(4px);
}

/* Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 10;
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.search-icon {
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.8);
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
}

.btn-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #FF8C42, #FF6A00);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 140, 66, 0.25);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 140, 66, 0.35);
}

.phone-icon {
    width: 16px;
    height: 16px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07 19.5 19.5 0 01-6-6 19.79 19.79 0 01-3.07-8.67A2 2 0 014.11 2h3a2 2 0 012 1.72 12.84 12.84 0 00.7 2.81 2 2 0 01-.45 2.11L8.09 9.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45 12.84 12.84 0 002.81.7A2 2 0 0122 16.92z' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Prevent flickering */
.has-mega {
    position: relative;
}

.has-mega::before {
    content: '';
    position: absolute;
    top: 100%;
    left: -20px;
    right: -20px;
    height: 25px;
    pointer-events: none;
}

.has-mega:hover::before {
    pointer-events: all;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .mega-menu {
        width: 90vw;
        max-width: 750px;
        min-width: 500px;
    }
    
    .mega-sidebar {
        width: 250px;
    }
    
    .mega-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .navbar {
        width: calc(100% - 20px);
        top: 10px;
    }
    
    .nav-container {
        padding: 0 20px;
    }
    
    .nav-menu {
        gap: 4px;
    }
    
    .nav-link {
        padding: 12px 14px;
        font-size: 14px;
    }
}

@media (max-width: 1024px) {
    .mega-menu {
        width: 95vw;
        max-width: none;
        min-width: auto;
        left: 2.5vw;
        right: auto !important;
        transform: translateX(0) translateY(10px) !important;
    }
    
    .has-mega:hover .mega-menu {
        transform: translateX(0) translateY(0) !important;
    }
    
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        max-width: none;
        transform: none;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Mobile menu overlay */
    .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--brand-dark, #0C1E3C);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 20px 40px;
    transform: translateX(-100%); /* hidden off-screen */
    transition: transform 0.3s ease;
    overflow-y: auto; /* allow scroll */
    z-index: 9999;
    }

  .nav-menu.active {
    transform: translateX(0); /* slide in */
  }



  .has-mega > .mega-menu {
    display: none;       /* hidden by default */
    position: static;
    opacity: 1;
    visibility: visible;
    margin-top: 10px;
    background: var(--dark-bg);
    width: 100%;
  }
  .has-mega.open > .mega-menu {
    display: block;      /* only show when parent .open */
  }

    
    .menu-toggle {
        display: flex;
    }
    
    .search-btn {
        display: none;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        justify-content: center;
        width: 100%;
        margin: 0 20px;
    }
    
    .mega-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        margin: 8px 20px 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        pointer-events: all;
    }
    
    .mega-container {
        flex-direction: column;
        min-height: auto;
    }
    
    .mega-sidebar {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 20px 0;
    }
    
    .mega-content {
        padding: 24px;
    }
    
    .mega-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 16px;
    }
    
    .nav-wrapper {
        height: 64px;
    }
    
    .nav-logo img {
        height: 32px;
    }
    
    .btn-cta {
        padding: 10px 16px;
        font-size: 13px;
        gap: 6px;
    }
    
    .phone-icon {
        width: 14px;
        height: 14px;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0F1729 0%, #1E293B 25%, #334155 50%, #1E293B 75%, #0F1729 100%);
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 140, 66, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
    background-size: 100% 100%, 80% 80%;
    background-position: 0% 0%, 100% 100%;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.float-element {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    width: 120px;
    height: 120px;
    top: 20%;
    left: 10%;
    background: rgba(255, 140, 66, 0.1);
    animation-delay: 0s;
}

.element-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 15%;
    background: rgba(59, 130, 246, 0.08);
    animation-delay: 2s;
}

.element-3 {
    width: 60px;
    height: 60px;
    top: 30%;
    right: 30%;
    background: rgba(16, 185, 129, 0.1);
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(10px) rotate(240deg); }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 140, 66, 0.1);
    border: 1px solid rgba(255, 140, 66, 0.3);
    border-radius: 50px;
    padding: 12px 24px;
    margin-bottom: 32px;
    color: var(--brand-orange);
    font-size: 14px;
    font-weight: 600;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: clamp(48px, 5vw, 72px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.title-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--brand-orange);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Search and Filter Section */
.search-filter-section {
    background: rgba(255, 255, 255, 0.02);
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 60px;
    z-index: 50;
    backdrop-filter: blur(10px);
}

.search-controls {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 20px;
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

#searchInput {
    width: 100%;
    padding: 16px 20px 16px 60px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

#searchInput:focus {
    outline: none;
    border-color: var(--brand-orange);
    background: var(--card-hover-bg);
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.1);
}

#searchInput::placeholder {
    color: var(--text-muted);
}

.clear-search {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition-smooth);
    opacity: 0;
    visibility: hidden;
}

.clear-search.visible {
    opacity: 1;
    visibility: visible;
}

.clear-search:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.filter-tags {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-tag {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.filter-tag:hover,
.filter-tag.active {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
    color: white;
    transform: translateY(-2px);
}

.results-count {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* Case Studies Grid */
.case-studies-section {
    padding: 80px 0;
    background: var(--brand-dark);
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

/* Case Study Card */
.case-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
    backdrop-filter: blur(10px);
    opacity: 1; /* Changed from 0 to 1 */
    transform: translateY(0); /* Changed from translateY(30px) to 0 */
    display: block; /* Ensure cards are visible */
}

.case-card.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.case-card:hover {
    background: var(--card-hover-bg);
    border-color: rgba(255, 140, 66, 0.3);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.case-card:hover::before {
    transform: scaleX(1);
}

.case-header {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.case-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.05);
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.8), rgba(59, 130, 246, 0.6));
    opacity: 0;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-card:hover .case-overlay {
    opacity: 1;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.industry-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.view-details {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.view-details:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Case Content */
.case-content {
    padding: 32px;
}

.case-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
}

.client-name {
    color: var(--brand-orange);
    font-weight: 600;
}

.project-duration {
    color: var(--text-muted);
}

.case-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.case-excerpt {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.case-metrics {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.metric {
    text-align: center;
    flex: 1;
}

.metric-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--brand-orange);
    margin-bottom: 4px;
}

.metric-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tag {
    background: rgba(59, 130, 246, 0.1);
    color: var(--brand-blue);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Case Details (Initially Hidden) */
.case-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    margin-bottom: 24px;
}

.case-card.expanded .case-details {
    max-height: 1000px;
}

.case-details > div {
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border-left: 3px solid transparent;
}

.challenge {
    border-left-color: #EF4444;
}

.solution {
    border-left-color: var(--brand-blue);
}

.results {
    border-left-color: #10B981;
}

.case-details h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.challenge h3 { color: #EF4444; }
.solution h3 { color: var(--brand-blue); }
.results h3 { color: #10B981; }

.case-details p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.case-details ul {
    list-style: none;
    padding: 0;
}

.case-details li {
    color: var(--text-secondary);
    padding: 6px 0 6px 20px;
    position: relative;
    line-height: 1.5;
}

.case-details li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10B981;
    font-weight: bold;
}

.view-case-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.view-case-btn:hover {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
    color: white;
    transform: translateY(-2px);
}

/* No Results State */
.no-results {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
}

.no-results-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-results svg {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.no-results h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.no-results p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.clear-filters-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.clear-filters-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Load More Section */
.load-more-section {
    text-align: center;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.load-more-btn:hover {
    background: var(--card-hover-bg);
    border-color: var(--brand-orange);
    transform: translateY(-2px);
}

/* CTA Section */
.cta-section {
    background: var(--brand-dark-secondary);
    padding: 80px 0;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(255, 140, 66, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 140, 66, 0.1);
    border: 1px solid rgba(255, 140, 66, 0.3);
    border-radius: 50px;
    padding: 12px 24px;
    margin-bottom: 24px;
    color: var(--brand-orange);
    font-size: 14px;
    font-weight: 600;
}

.cta-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.cta-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-primary);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-primary);
    padding: 16px 32px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.cta-secondary:hover {
    background: var(--card-hover-bg);
    border-color: var(--brand-orange);
}

.cta-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--brand-dark-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    max-width: 900px;
    width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition-bounce);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 10;
}

.modal-close:hover {
    background: var(--brand-orange);
    color: white;
}

.modal-body {
    padding: 40px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 32px;
    }
    
    .case-studies-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 24px;
    }
    
    .hero-stats {
        gap: 32px;
    }
}

@media (max-width: 1024px) {
    .search-controls {
        align-items: center;
    }
    
    .filter-tags {
        justify-content: center;
    }
    
    .case-studies-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
    
    .cta-stats {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
    
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: clamp(32px, 8vw, 48px);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .search-filter-section {
        padding: 30px 0;
        position: static;
    }
    
    .case-studies-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .case-content {
        padding: 24px;
    }
    
    .case-metrics {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-primary,
    .cta-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .cta-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .modal-body {
        padding: 30px 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .breadcrumb-nav {
        padding: 12px 0;
    }
    
    .hero-badge {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .search-box {
        margin: 0;
    }
    
    #searchInput {
        padding: 14px 16px 14px 50px;
        font-size: 15px;
    }
    
    .filter-tags {
        gap: 8px;
    }
    
    .filter-tag {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .case-content {
        padding: 20px;
    }
    
    .case-title {
        font-size: 20px;
    }
    
    .metric-value {
        font-size: 20px;
    }
    
    .cta-title {
        font-size: 28px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --border-color: rgba(255, 255, 255, 0.3);
        --card-bg: rgba(255, 255, 255, 0.1);
        --card-hover-bg: rgba(255, 255, 255, 0.15);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .float-element {
        animation: none;
    }
    
    .case-card:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .search-filter-section,
    .cta-section,
    .back-to-top,
    .modal-overlay {
        display: none;
    }
    
    .case-card {
        break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .case-details {
        max-height: none;
    }
}